<LayoutTableSmall>
    <!-- 顶部 -->
    <template slot="top"></template>
    <!-- 其他 -->
    <template slot="other"></template>
    <!-- 搜索 -->
    <template slot="search">
        <el-form :inline="true" label-position="left" label-width="80px" :model="mixinTable_tableSearchData"
            @submit.native.prevent class="demo-form-inline">

            <el-select v-model="mixinTable_tableSearchSenior.audit_status.value" placeholder="请选择" @change="mixinTable_searchData">
                <el-option  label="等待审核" :value="1"></el-option>
                <el-option  label="审核通过" :value="2"></el-option>
                <el-option  label="审核失败" :value="3"></el-option>
            </el-select>
        </el-form>

    </template>
    <!-- 功能 -->
    <template slot="function">
        <el-select v-model="mixinTable_tableSearchSenior.level_id.value" placeholder="选择等级" @change="statusChange" clearable>
            <el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id">
            </el-option>
        </el-select>
    </template>
    <!-- 表格 -->
    <template slot="table">
        <!-- mixinTable_loading -->
        <el-table v-loading="mixinTable_loading" :data="mixinTable_tableData" border style="width: 100%;"
            :ref="mixinPage_vueName+'TableSmall'" height="100%"
            @selection-change="mixinTable_handleSelectionChangeTableSmall" :tree-props="{children: 'children'}"
            default-expand-all row-key="id">
            <el-table-column type="selection" width="50" align="center"></el-table-column>
            <el-table-column prop="id" width="50" align="center" label="ID">
            </el-table-column>
            <el-table-column prop="order_no" label="订单编号">
            </el-table-column>
            <el-table-column prop="created_at" label="订单时间 ">
            </el-table-column>
            <el-table-column prop="order_item_detail.orderItemList.activityPrice" label="价格">
            </el-table-column>
            <el-table-column prop="order_item_detail.orderItemList.buyNum" label="数量">
            </el-table-column>
            <el-table-column prop="audit_status" label="分红审核状态">
                <template slot-scope="scope">
                    <div v-if="scope.row.audit_status == 1">等待审核</div>
                    <div v-if="scope.row.audit_status == 2">审核通过</div>
                    <div v-if="scope.row.audit_status == 3">审核失败</div>
                </template>
            </el-table-column>
            <el-table-column label="操作" width="150" align="center">
                <template slot-scope="scope">
                    <el-button v-if="scope.row.audit_status == 1" @click="examine({id:scope.row.id,data:scope.row})">审核</el-button>
                </template>
            </el-table-column>
        </el-table>

    </template>
    <!-- 表格选项 -->
    <template slot="options">
        <el-button :disabled="mixinTable_selectTableData.length<=0" @click="batchExamine(mixinTable_selectTableData)">批量审核</el-button>
        <!-- <el-button :disabled="mixinTable_selectTableData.length<=0" @click="mixinTable_selectTableDeleteData()">
            删除已选</el-button> -->
        <el-button :disabled="mixinTable_selectTableData.length<=0"
            @click="mixinTable_clearSelectionChangeTableSmall()">取消选择
        </el-button>
    </template>
    <template slot="page">
        <el-pagination class="paginationStyle" v-if="mixinTable_pageData.total>0" background
            @current-change="mixinTable_pagingData($event)" :current-page="mixinTable_pageData.pageNum"
            :page-size.sync="$vFN.Constants.pageSize" layout="total, prev, pager, next,jumper"
            :total.sync="mixinTable_pageData.total">
        </el-pagination>
    </template>
</LayoutTableSmall>